import { Layout } from '@/utils/routerHelper'
import { RouteRecordRaw } from 'vue-router'

export const eiot: RouteRecordRaw[] = [
  {
    path: '/eiot',
    component: Layout,
    name: 'Eiot',
    meta: {
      title: '物联网平台',
      icon: 'ep:apple',
      alwaysShow: true
    },
    children: [
      // 产品
      {
        path: 'product',
        component: () => import('@/views/eiot/product/index.vue'),
        name: 'EiotProduct',
        meta: { title: '产品管理', icon: 'ep:box' }
      },
      // SP表
      {
        path: 'sp',
        component: () => import('@/views/eiot/sp/index.vue'),
        name: 'EiotSp',
        meta: { title: 'SP表管理', icon: 'ep:document' }
      }
    ]
  }
]